import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  eslint: {
    // 在生产构建时忽略 ESLint 错误
    ignoreDuringBuilds: true,
  },
  typescript: {
    // 在生产构建时忽略 TypeScript 错误
    ignoreBuildErrors: false,
  },
  images: {
    remotePatterns: [
      {
        protocol: 'http',
        hostname: 'localhost',
        port: '7172',
        pathname: '/uploads/**',
      },
      {
        protocol: 'http',
        hostname: 'localhost',
        port: '7172',
        pathname: '/uploads/**',
      },
      {
        protocol: 'https',
        hostname: 'c4pad.fun',
        pathname: '/uploads/**',
      },
      {
        protocol: 'http',
        hostname: '104.129.59.158',
        pathname: '/uploads/**',
      },
    ],
  },
};

export default nextConfig;
